﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DOTNET101_Statement_Expression_Operators
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.Click += (s, e) => { MessageBox.Show(((MouseEventArgs)e).Location.ToString()); };

            // Create a handler for a click event
            button1.Click += delegate(System.Object o, System.EventArgs e)
            { System.Windows.Forms.MessageBox.Show("Click!"); };
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}
